/**
 * 用于跨域设置
 */
const { createProxyMiddleware } = require('http-proxy-middleware')

module.exports = function(app) {
    app.use(
        createProxyMiddleware(
            '/apis',
            {
                target: 'http://www.shuiyue.info:22000',
                changeOrigin: true,
                pathRewrite: {'/apis': ''}
            }
        )
    )
}